<?php echo $this->doctype('XHTML1_STRICT');?>
<html lang="en">
<head>
    <?php echo $this->headTitle('Payment'); ?>    
    <link href = "/images/front-end/favicon.ico" rel = "shortcut icon" type = "image/x-icon" />
    <meta http-equiv = "Content-Type" content = "text/html" charset = "utf-8" />   
    <?php echo $this->headLink()->appendStylesheet('/css/front-end/reset.css'); ?>
    <?php echo $this->headLink()->offsetSetStylesheet(0,'/css/front-end/style.css','all'); ?>
    <?php echo $this->headLink()->offsetSetStylesheet(0,'/css/front-end/layout.css','all'); ?>
    <?php echo $this->headScript()->appendFile('/js/front-end/jquery-1.7.1.min.js');?>
    <?php echo $this->headScript()->offsetSetFile(0,'/js/front-end/cufon-yui.js','text/javascript');?>     
    <?php echo $this->headScript()->offsetSetFile(0,'/js/front-end/cufon-replace.js','text/javascript');?>    
    <?php echo $this->headScript()->offsetSetFile(0,'/js/front-end/Dynalight_400.font.js','text/javascript');?>
    <?php echo $this->headScript()->offsetSetFile(0,'/js/front-end/FF-cash.js','text/javascript');?>
	
</head>
<body id="page5">
	<!--==============================header=================================-->
    <header>
    	<div class="row-top">
        	<div class="main">
            	<div class="wrapper">
                	<h1><a href="index">NhaHang<span>5Sao</span>. com</a></h1>
                    <nav>
                        <ul class="menu">
                           <li><a href="<?php echo $this->baseUrl();?>/index/index"> Trang chủ </a></li>                          
                            <li><a class="active" href="<?php echo $this->baseUrl();?>/index/thucdon"> Thực đơn </a></li>
                            <li><a href="<?php echo $this->baseUrl();?>/index/giaohang"> Giao hàng </a></li>                            
                            <li><a href="<?php echo $this->baseUrl();?>/index/lienhe"> Liên hệ </a></li>
                        </ul>
                    </nav>
                </div>
            </div>
        </div>
        <div class="row-bot">
        	<div class="row-bot-bg">
            	<div class="main">
                	<h2>Impressive Selection <span>for any Occasion</span></h2>
                </div>
            </div>
        </div>
    </header>
    
	<!--==============================content================================-->
    <section id="content"><div class="ic"><div class="inner_copy">All <a href="http://www.magentothemesworld.com" title="Best Magento Templates">premium Magento themes</a> at magentothemesworld.com!</div></div>
        <div class="main">
            <div class="container">
            	<h3> Món ăn </h3>
            	<?php 
            		$listItem = $this->items;            		
            		$listSpice = $this->spices; 
            	?>
            	<table width = "100%" border = "0" cellspacing = "0" cellpadding = "0">
            		<tr align = "center" id = "itemTable">
            			<th width = "10%"> Mã món ăn </th>
            			<th width = "21%" > Tên món ăn </th>
            			<th width = "20%"> Hình ảnh </th>
            			<th width = "14%"> Số lượng </th>
            			<th width = "12%"> Gía mỗi món </th>
            			<th width = "12%" > Thành tiền </th>
            			<th width = "11%"> Xóa món ăn </th>
            		</tr>
            		<?php 
            			
            			for($i = 0;$i < count($listItem);$i++)
            			{
            				echo "<tr align = \"center\" class = \"listItem\">\n";
            				echo "<td height = \"100px\" valign = \"middle\"> " .$listItem[$i]['item_id']. " </td>\n";
            				echo "<td height = \"100px\" valign = \"middle\"> <div class = \"content\"> " .$listItem[$i]['item_name']. " </div> </td>\n";
            				echo "<td height = \"100px\" valign = \"middle\"> <img src = \"/images/front-end/" .$listItem[$i]['images'] . "\"  width = \"126\" height = \"70\" /> </td>";
            				echo "<td height = \"100px\" valign = \"middle\">" .$listItem[$i]['quantity']. " món</td>\n";
            				echo "<td height = \"100px\" valign = \"middle\">" .$listItem[$i]['price']. " VNĐ </td>\n";
            				echo "<td height = \"100px\" valign = \"middle\">" .$listItem[$i]['quantity'] * $listItem[$i]['price']. ".000 VNĐ </td>\n";
            				echo "<td valign = \"middle\"> <a href = \"/index/delete?delete_item=yes&item_id=" .$listItem[$i]['item_id'] ."\"> <img src = \"/images/front-end/delete.png\" /> </a> </td>\n";
            				echo "</tr>\n";
            			}          			
            		?>            		
            	</table>
            	<h3> Phụ Gia </h3>
            	<table width = "100%" border = "0" cellspacing = "0" cellpadding = "0">
            		<tr align = "center" id = "itemTable">
            			<th width = "10%"> Mã phụ gia </th>
            			<th width = "21%" > Tên phụ gia </th>
            			<th width = "20%"> Hình ảnh </th>
            			<th width = "14%"> Số lượng </th>
            			<th width = "12%"> Gía phụ gia </th>
            			<th width = "12%" > Thành tiền </th>
            			<th width = "11%"> Xóa phụ gia </th>
            		</tr>
            		<?php
            			for($j = 0;$j < count($listSpice);$j++)
            			{
            				echo "<tr align = \"center\" class = \"listItem\">\n";
            				echo "<td height = \"100px\" valign = \"middle\"> " .$listSpice[$j]['spice_id']. " </td>\n";
            				echo "<td height = \"100px\" valign = \"middle\"> <div class = \"content\"> " .$listSpice[$j]['spice_name']. " </div> </td>\n";
            				echo "<td height = \"100px\" valign = \"middle\"> <img src = \"/images/front-end/" .$listSpice[$j]['images'] . "\"  width = \"126\" height = \"70\" /> </td>";
            				echo "<td height = \"100px\" valign = \"middle\">" .$listSpice[$j]['quantity']. " món</td>\n";
            				echo "<td height = \"100px\" valign = \"middle\">" .$listSpice[$j]['price']. " VNĐ </td>\n";
            				echo "<td height = \"100px\" valign = \"middle\">" .$listSpice[$j]['quantity'] * $listSpice[$j]['price']. ".000 VNĐ </td>\n";
            				echo "<td valign = \"middle\"> <a href = \"/index/delete?delete_spice=yes&spice_id=" .$listSpice[$j]['spice_id'] ."\"> <img src = \"/images/front-end/delete.png\" /> </a> </td>\n";
            				echo "</tr>\n";
            			}          			
            		?>            
            	</table>            	
            </div>
            <div id = "buttonPay">
            	<a href = "/index/account" class = "bill"> &nbsp; &nbsp;Thanh toán </a>
            </div>
            <div id = "buttonAdd">
            	<a href = "/index/thucdon" class = "bill"> &nbsp; &nbsp;Thêm món </a>           
			</div>
            <br /><br />
        </div>
    </section>
    
	<!--==============================footer=================================-->
    <footer>
        <div class="main">
        	<div class="aligncenter">
            	<span>nhahang5sao.com &copy; 2012</span>
                <a rel="nofollow" class="link" target="_blank" href="index.phtml">Nhà hàng 5 sao</a><br>Admin: nhahang5sao@toantin.org
        </div>
    </footer>    
</body>
</html>
